<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>tinydtls: global.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">tinydtls
   &#160;<span id="projectnumber">0.8.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">global.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;sys/types.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="tinydtls_8h_source.html">tinydtls.h</a>&quot;</code><br/>
</div>
<p><a href="global_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a6b9b983a346a3e94eff205f8eab2bce0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a6b9b983a346a3e94eff205f8eab2bce0">DTLSv12</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a6b9b983a346a3e94eff205f8eab2bce0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4da6212f220f78c713aa5e91f989e7d7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a4da6212f220f78c713aa5e91f989e7d7">WITH_SHA256</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a4da6212f220f78c713aa5e91f989e7d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdbfba15eb1a5692e177d582b4ca1583"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#acdbfba15eb1a5692e177d582b4ca1583">DTLS_MAX_BUF</a>&#160;&#160;&#160;1400</td></tr>
<tr class="separator:acdbfba15eb1a5692e177d582b4ca1583"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fc59fb51c2e3cb4da6fb19bc8cad080"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a9fc59fb51c2e3cb4da6fb19bc8cad080">DTLS_DEFAULT_MAX_RETRANSMIT</a>&#160;&#160;&#160;7</td></tr>
<tr class="separator:a9fc59fb51c2e3cb4da6fb19bc8cad080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e080d630a40510f655bf6982c555063"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a7e080d630a40510f655bf6982c555063">TLS_EXT_ELLIPTIC_CURVES</a>&#160;&#160;&#160;10 /* see RFC 4492 */</td></tr>
<tr class="separator:a7e080d630a40510f655bf6982c555063"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d17863db920927ef8160547541b58e3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a5d17863db920927ef8160547541b58e3">TLS_EXT_EC_POINT_FORMATS</a>&#160;&#160;&#160;11 /* see RFC 4492 */</td></tr>
<tr class="separator:a5d17863db920927ef8160547541b58e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0249393d6894a15ac56962b2335add24"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a0249393d6894a15ac56962b2335add24">TLS_EXT_SIG_HASH_ALGO</a>&#160;&#160;&#160;13 /* see RFC 5246 */</td></tr>
<tr class="separator:a0249393d6894a15ac56962b2335add24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0074adc0b2543a913a597e510caf27b0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a0074adc0b2543a913a597e510caf27b0">TLS_EXT_CLIENT_CERTIFICATE_TYPE</a>&#160;&#160;&#160;19 /* see RFC 7250 */</td></tr>
<tr class="separator:a0074adc0b2543a913a597e510caf27b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad465b86d1841ddd6c2209ff304895a95"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ad465b86d1841ddd6c2209ff304895a95">TLS_EXT_SERVER_CERTIFICATE_TYPE</a>&#160;&#160;&#160;20 /* see RFC 7250 */</td></tr>
<tr class="separator:ad465b86d1841ddd6c2209ff304895a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae136afe82bd9031a4c1c604de0cb0118"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ae136afe82bd9031a4c1c604de0cb0118">TLS_EXT_ENCRYPT_THEN_MAC</a>&#160;&#160;&#160;22 /* see RFC 7366 */</td></tr>
<tr class="separator:ae136afe82bd9031a4c1c604de0cb0118"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af36d51830256b7d1bf4dbaa8590c19e4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#af36d51830256b7d1bf4dbaa8590c19e4">TLS_CERT_TYPE_RAW_PUBLIC_KEY</a>&#160;&#160;&#160;2 /* see RFC 7250 */</td></tr>
<tr class="separator:af36d51830256b7d1bf4dbaa8590c19e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8095691f33c0ce6b22d205640ccc9417"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a8095691f33c0ce6b22d205640ccc9417">TLS_EXT_ELLIPTIC_CURVES_SECP256R1</a>&#160;&#160;&#160;23 /* see RFC 4492 */</td></tr>
<tr class="separator:a8095691f33c0ce6b22d205640ccc9417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af086ed2d0aea096be56bf7e46f8f72a6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#af086ed2d0aea096be56bf7e46f8f72a6">TLS_EXT_EC_POINT_FORMATS_UNCOMPRESSED</a>&#160;&#160;&#160;0 /* see RFC 4492 */</td></tr>
<tr class="separator:af086ed2d0aea096be56bf7e46f8f72a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac97469cc46ceeb148ee92f47a26ebcf6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ac97469cc46ceeb148ee92f47a26ebcf6">TLS_EC_CURVE_TYPE_NAMED_CURVE</a>&#160;&#160;&#160;3 /* see RFC 4492 */</td></tr>
<tr class="separator:ac97469cc46ceeb148ee92f47a26ebcf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaace8dce4341d910140609a96bb300db"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#aaace8dce4341d910140609a96bb300db">TLS_CLIENT_CERTIFICATE_TYPE_ECDSA_SIGN</a>&#160;&#160;&#160;64 /* see RFC 4492 */</td></tr>
<tr class="separator:aaace8dce4341d910140609a96bb300db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa347771eab2eabd24c4b9311fa61c4c9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#aa347771eab2eabd24c4b9311fa61c4c9">TLS_EXT_SIG_HASH_ALGO_SHA256</a>&#160;&#160;&#160;4 /* see RFC 5246 */</td></tr>
<tr class="separator:aa347771eab2eabd24c4b9311fa61c4c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af126227a026a7af436a4323db6d02ecc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#af126227a026a7af436a4323db6d02ecc">TLS_EXT_SIG_HASH_ALGO_ECDSA</a>&#160;&#160;&#160;3 /* see RFC 5246 */</td></tr>
<tr class="separator:af126227a026a7af436a4323db6d02ecc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:adde6aaee8457bee49c2a92621fe22b79"><td class="memItemLeft" align="right" valign="top">typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a></td></tr>
<tr class="separator:adde6aaee8457bee49c2a92621fe22b79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e90b30856b81913af89565b55751da5"><td class="memItemLeft" align="right" valign="top">typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a5e90b30856b81913af89565b55751da5">uint16</a> [2]</td></tr>
<tr class="separator:a5e90b30856b81913af89565b55751da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabc56baaf04f922a1ea0dda7691fec0a"><td class="memItemLeft" align="right" valign="top">typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#aabc56baaf04f922a1ea0dda7691fec0a">uint24</a> [3]</td></tr>
<tr class="separator:aabc56baaf04f922a1ea0dda7691fec0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab27072920285996a3e16d2e5e3d366be"><td class="memItemLeft" align="right" valign="top">typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ab27072920285996a3e16d2e5e3d366be">uint32</a> [4]</td></tr>
<tr class="separator:ab27072920285996a3e16d2e5e3d366be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0749f1df578b26eccab986b0d8abaa56"><td class="memItemLeft" align="right" valign="top">typedef unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a0749f1df578b26eccab986b0d8abaa56">uint48</a> [6]</td></tr>
<tr class="separator:a0749f1df578b26eccab986b0d8abaa56"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ada7e71454d685b693df45b2c1ea0c59b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ada7e71454d685b693df45b2c1ea0c59b">dtls_cipher_t</a> { <a class="el" href="global_8h.html#ada7e71454d685b693df45b2c1ea0c59bacf33de998fd00f096eebbb0742d80abd">TLS_NULL_WITH_NULL_NULL</a> = 0x0000, 
<a class="el" href="global_8h.html#ada7e71454d685b693df45b2c1ea0c59ba39a3062f136db88f648ce514a591fac8">TLS_PSK_WITH_AES_128_CCM_8</a> = 0xC0A8, 
<a class="el" href="global_8h.html#ada7e71454d685b693df45b2c1ea0c59ba197892e216f63ddbc91c2b006a2d4c1e">TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8</a> = 0xC0AE
 }</td></tr>
<tr class="separator:ada7e71454d685b693df45b2c1ea0c59b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ff555e0b1443c4cb4d17ac2161d89b2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a1ff555e0b1443c4cb4d17ac2161d89b2">dtls_compression_t</a> { <a class="el" href="global_8h.html#a1ff555e0b1443c4cb4d17ac2161d89b2ac5b79ee16e8c0e46873fa63fdb1ab9ca">TLS_COMPRESSION_NULL</a> = 0x0000
 }</td></tr>
<tr class="separator:a1ff555e0b1443c4cb4d17ac2161d89b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6c31c5d8a0fe09547a192100d2a00dc5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a6c31c5d8a0fe09547a192100d2a00dc5">memxor</a> (unsigned char *x, const unsigned char *y, size_t n)</td></tr>
<tr class="separator:a6c31c5d8a0fe09547a192100d2a00dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8277c276ecd5cd2f998f08fd344d90ef"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#a8277c276ecd5cd2f998f08fd344d90ef">equals</a> (unsigned char *a, unsigned char *b, size_t len)</td></tr>
<tr class="separator:a8277c276ecd5cd2f998f08fd344d90ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae10dcc6b71efe025c990ac2f3d8a48b8"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="global_8h.html#ae10dcc6b71efe025c990ac2f3d8a48b8">dtls_fls</a> (unsigned int i)</td></tr>
<tr class="separator:ae10dcc6b71efe025c990ac2f3d8a48b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a9fc59fb51c2e3cb4da6fb19bc8cad080"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DTLS_DEFAULT_MAX_RETRANSMIT&#160;&#160;&#160;7</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Number of message retransmissions. </p>

<p>Definition at line <a class="el" href="global_8h_source.html#l00070">70</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="acdbfba15eb1a5692e177d582b4ca1583"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DTLS_MAX_BUF&#160;&#160;&#160;1400</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Maximum size of DTLS message. When Peers are sending bigger messages this causes problems. Californium with ECDSA needs at least 220 </p>

<p>Definition at line <a class="el" href="global_8h_source.html#l00064">64</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6b9b983a346a3e94eff205f8eab2bce0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DTLSv12&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00036">36</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="af36d51830256b7d1bf4dbaa8590c19e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_CERT_TYPE_RAW_PUBLIC_KEY&#160;&#160;&#160;2 /* see RFC 7250 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00092">92</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="aaace8dce4341d910140609a96bb300db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_CLIENT_CERTIFICATE_TYPE_ECDSA_SIGN&#160;&#160;&#160;64 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00100">100</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac97469cc46ceeb148ee92f47a26ebcf6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EC_CURVE_TYPE_NAMED_CURVE&#160;&#160;&#160;3 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00098">98</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0074adc0b2543a913a597e510caf27b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_CLIENT_CERTIFICATE_TYPE&#160;&#160;&#160;19 /* see RFC 7250 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00088">88</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5d17863db920927ef8160547541b58e3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_EC_POINT_FORMATS&#160;&#160;&#160;11 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00086">86</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="af086ed2d0aea096be56bf7e46f8f72a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_EC_POINT_FORMATS_UNCOMPRESSED&#160;&#160;&#160;0 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00096">96</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7e080d630a40510f655bf6982c555063"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_ELLIPTIC_CURVES&#160;&#160;&#160;10 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00085">85</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8095691f33c0ce6b22d205640ccc9417"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_ELLIPTIC_CURVES_SECP256R1&#160;&#160;&#160;23 /* see RFC 4492 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00094">94</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae136afe82bd9031a4c1c604de0cb0118"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_ENCRYPT_THEN_MAC&#160;&#160;&#160;22 /* see RFC 7366 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00090">90</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad465b86d1841ddd6c2209ff304895a95"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_SERVER_CERTIFICATE_TYPE&#160;&#160;&#160;20 /* see RFC 7250 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00089">89</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0249393d6894a15ac56962b2335add24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_SIG_HASH_ALGO&#160;&#160;&#160;13 /* see RFC 5246 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00087">87</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="af126227a026a7af436a4323db6d02ecc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_SIG_HASH_ALGO_ECDSA&#160;&#160;&#160;3 /* see RFC 5246 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00103">103</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa347771eab2eabd24c4b9311fa61c4c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TLS_EXT_SIG_HASH_ALGO_SHA256&#160;&#160;&#160;4 /* see RFC 5246 */</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00102">102</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4da6212f220f78c713aa5e91f989e7d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WITH_SHA256&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00042">42</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a5e90b30856b81913af89565b55751da5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned char uint16[2]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00048">48</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="aabc56baaf04f922a1ea0dda7691fec0a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned char uint24[3]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00049">49</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab27072920285996a3e16d2e5e3d366be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned char uint32[4]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00050">50</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0749f1df578b26eccab986b0d8abaa56"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned char uint48[6]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00051">51</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="adde6aaee8457bee49c2a92621fe22b79"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned char <a class="el" href="global_8h.html#adde6aaee8457bee49c2a92621fe22b79">uint8</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00047">47</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ada7e71454d685b693df45b2c1ea0c59b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="global_8h.html#ada7e71454d685b693df45b2c1ea0c59b">dtls_cipher_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Known cipher suites. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ada7e71454d685b693df45b2c1ea0c59bacf33de998fd00f096eebbb0742d80abd"></a>TLS_NULL_WITH_NULL_NULL</em>&#160;</td><td class="fielddoc">
<p>NULL cipher </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ada7e71454d685b693df45b2c1ea0c59ba39a3062f136db88f648ce514a591fac8"></a>TLS_PSK_WITH_AES_128_CCM_8</em>&#160;</td><td class="fielddoc">
<p>see RFC 6655 </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ada7e71454d685b693df45b2c1ea0c59ba197892e216f63ddbc91c2b006a2d4c1e"></a>TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8</em>&#160;</td><td class="fielddoc">
<p>see RFC 7251 </p>
</td></tr>
</table>

<p>Definition at line <a class="el" href="global_8h_source.html#l00074">74</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1ff555e0b1443c4cb4d17ac2161d89b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="global_8h.html#a1ff555e0b1443c4cb4d17ac2161d89b2">dtls_compression_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Known compression suites. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a1ff555e0b1443c4cb4d17ac2161d89b2ac5b79ee16e8c0e46873fa63fdb1ab9ca"></a>TLS_COMPRESSION_NULL</em>&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="global_8h_source.html#l00081">81</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ae10dcc6b71efe025c990ac2f3d8a48b8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int dtls_fls </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="global_8h_source.html#l00139">139</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8277c276ecd5cd2f998f08fd344d90ef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int equals </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Compares <code>len</code> bytes from <code>a</code> with <code>b</code> in constant time. This functions always traverses the entire length to prevent timing attacks.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Byte sequence to compare </td></tr>
    <tr><td class="paramname">b</td><td>Byte sequence to compare </td></tr>
    <tr><td class="paramname">len</td><td>Number of bytes to compare. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>1</code> if <code>a</code> and <code>b</code> are equal, <code>0</code> otherwise. </dd></dl>

<p>Definition at line <a class="el" href="global_8h_source.html#l00127">127</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6c31c5d8a0fe09547a192100d2a00dc5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void memxor </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>XORs <code>n</code> bytes byte-by-byte starting at <code>y</code> to the memory area starting at <code>x</code>. </p>

<p>Definition at line <a class="el" href="global_8h_source.html#l00109">109</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 27 2015 15:15:33 for tinydtls by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
